function getList//namefunction//() {
        $query = "//query_select//";        
        $mysqli = new mysqli('localhost', 'root', '', 'cdcol');
        if ($mysqli->connect_errno) {
            printf("Connect failed: %s\n", $mysqli->connect_error);
            exit();
        }

        $posts = array();
        if ($result = $mysqli->query($query)) {
            while ($row = $result->fetch_array(MYSQLI_ASSOC)) {				
                //result//
            }
            $result->close();
            $mysqli->close();
        }        

        header('Content-type: application/json');
        echo json_encode(array('result' => $posts));
    }
    
    